import request from '@/axios/axios'
export async  function listone(query:any) {
  return request({
    url: 'detection_result',
    method: 'get',
    params: query,
  })
}

export function debounce(fn, delay) {
  let timerID = null
  return function () {
    const _this = this
    const args = arguments
    if (timerID) {
      clearTimeout(timerID);
    }
    timerID && clearTimeout(timerID)
    timerID = setTimeout(() => {
      fn.apply(_this, args)
      console.log(123)
    }, delay)
  }
}
